home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7802 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  884 b 

  1. Path: prodigy.com!usenet
  2. From: DZYS46D@prodigy.com (David Cunningham)
  3. Newsgroups: comp.lang.c
  4. Subject: Explain this> %s \"%[^\"]\"
  5. Date: 29 Feb 1996 00:49:34 GMT
  6. Organization: Prodigy Services Company  1-800-PRODIGY
  7. Distribution: world
  8. Message-ID: <4h2t6u$v56@useneta1.news.prodigy.com>
  9. NNTP-Posting-Host: inugap5.news.prodigy.com
  10. X-Newsreader: Version 1.2
  11.  
  12.  
  13. I have a file that contains text like this:
  14.  
  15. 012345678     "Joe  Smith"
  16.  
  17.  
  18. I also have an example of sscanf to pick out these fields. Can someone 
  19. translate what  \"%[^\"]\"%d"  means. I need to have a good understanding 
  20. of this for a homework assignment. It looks like this:
  21.  
  22. sscanf(buff,"%s \ "%[^\"]\" %d",student_list->ss_num,student_list->name);
  23.  
  24.  
  25.  
  26. Please explain what these hieroglyphics mean, character by character.
  27.  
  28. The sscanf will produce this--> 012345678  Joe Smith
  29.  
  30. Please don't email, post the answer, thanks.
  31.  
  32.